/* 主体 */
/* body { */
/* margin: 8%; */
/* margin-top: 150px; */
/* } */

.host {
    width: 100%;
    height: 100%;
    margin: 4%;
    margin-left: 0;
    margin-right: 0;
    /* padding-left: 10%; */
    /* display: inline-block; */
    /* display: inline; */
    /* flex: 1; */

}

/* 版心 */
.wrapper {
    margin: 0 auto;
    width: 100%;

}

.bdleft {
    display: inline-block;
    width: 30%;
    height: 100%;
}

.bdright {
    display: inline-block;
    width: 80%;
    height: 100%;
    margin-left: 10%;
}

/* 快捷导航 */
.shortcut {
    width: 100%;
    height: 70px;
    background-color: #b0b1b0;
    /* position: relative; */
    position: fixed;
    top: 0;
    display: inline-block;
}

/* logo */
.logo {
    margin-left: 30px;
    width: 200px;
    height: 88px;
    position: relative;
    top: 10px;
    z-index: 1000;
}

.logo a {
    display: block;
    width: 207px;
    height: 50px;
    background-image: url(../images/logo.png);
    background-size: 100%;
    font-size: 0;
}

/* 头像 */
.avatar {
    position: fixed;
    top: 8px;
    right: 100px;
}

#toux {
    width: 55px;
    height: 55px;
}

/* 左侧导航 */
.sidebar {
    margin-left: 0;
    width: 70px;
    height: calc(100% - 70px);
    background-color: #b0b1b0;
    position: fixed;
    left: 0;
    top: 70px;
    bottom: 0;
    display: inline-block;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    padding-top: 30px;
}

.sidebar ul li {
    padding: 24px;
    text-align: center;
    border-left: 4px solid #000;
}

/* 添加域 */
#main-container {
    width: 70px;
    height: 600px;
    border: 1px solid gray;
    margin: 0;
    position: relative;
    /* position: fixed; */
    display: inline-flex;
}

#plus-sign {
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    left: 20px;
    bottom: 5px;
    cursor: pointer;
}

#domain-avatars-container {
    position: absolute;
    left: 10px;
    top: 10px;
    display: flex;
    flex-wrap: wrap;
}

.domain-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    margin-bottom: 10px;
    background-color: #5f8636;
}

.modal {
    display: none;
    position: fixed;
    /* 固定定位 */
    top: 50%;
    /* 顶部距离视口 50% */
    left: 50%;
    /* 左侧距离视口 50% */
    transform: translate(-50%, -50%);
    /* 通过 transform 实现居中 */
    width: 400px;
    height: 300px;
    background-color: rgba(8, 8, 8, 0.8);
    border-radius: 3%;
    z-index: 1000;
    /* 确保模态框在最上层 */
}


.modal #set {
    position: absolute;
    top: 3%;
    left: 35%;
    color: #fff;
}

.modal-content {
    background-color: #dad8d8;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    height: 100%;
    border-radius: 3%;
    position: relative;
}

.close {
    color: #030303;
    /* float: right; */
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 0;
    right: 10px;
    z-index: 9999;
}

.close:hover,
.close:focus {
    color: rgb(216, 27, 27);
    text-decoration: none;
    cursor: pointer;
}

.modal-content {
    border: 1px solid rgb(66, 143, 179);
}

#create-btn {
    display: block;
    position: absolute;
    top: 20%;
    right: 5%;
}

.add {
    display: block;
    position: absolute;
    top: 70%;
}

#domain-id {
    position: absolute;
    top: 83%;
    background-color: #f1f0f0;

}

#search-btn {
    position: absolute;
    top: 80%;
    right: 20%;
}

#join-btn {
    position: absolute;
    top: 80%;
    right: 5%;
}

/* 搜索结果 */
.search-result {
    margin-top: 30px;
    text-align: center;
}

.search-result img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.search-result p {
    margin: 5px 0;
}

/* 新的模态框样式 */
#create-domain-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 300px;
    background-color: rgba(8, 8, 8, 0.8);
    border-radius: 3%;
    z-index: 1000;
}

#create-domain-modal .modal-content {
    background-color: #dad8d8;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    height: 100%;
    border-radius: 3%;
    position: relative;
}

/* 头像预览区域 */
.avatar-preview {
    width: 100px;
    height: 100px;
    margin: 10px auto;
    border: 1px solid #ccc;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右键菜单 */
.context-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.context-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.context-menu ul li {
    padding: 8px 16px;
    cursor: pointer;
}

.context-menu ul li:hover {
    background-color: #f1f1f1;
}